﻿<!DOCTYPE html>
<html>
    <head>
        <title>Flower Shop - Danh Sách Sản Phẩm</title>
        <meta charset="UTF-8"> 
        <link rel="stylesheet" type="text/css" href="<?php echo asset_url() . 'css/style.css'; ?>" />
        <link rel="stylesheet" type="text/css" href="<?php echo asset_url() . 'css/stylenav.css'; ?>" />
        <link rel="stylesheet" href="<?php echo asset_url() . 'css/admin/style.css'; ?>" type="text/css"/>
        <script type="text/javascript" src="<?php echo asset_url() . 'js/jquery.js'; ?>"></script>
    </head>
    <body>
        <div id="wrap">
            <?php include '/layout/header.php'; ?>
            <div class="center_content" style="background-image:none">
                <div id="container">
                    <div class="shell">                     <!-- Small Nav -->                        
                        <div id="main">
                            <div class="cl">&nbsp;</div>
                            <!-- Content -->
                            <div id="content">
                                <!-- Box -->
                                <div class="box">
                                    <!-- Box Head -->
                                    <div class="box-head">
                                        <!--<label style="position: absolute; font-weight: bold;text-decoration-color: white;">Xóa Hoa Đang Chọn </label>-->
<!--                                        <div class="right">
                                            <label style="font-weight: bold">Tìm Hoa</label>
                                            <input type="text" class="field small-field" />
                                            <input type="submit" class="button" value="search" />
                                        </div>-->
                                    </div>
                                    <!-- End Box Head -->	
                                    <!-- Table -->
                                    <div class="table">
                                        <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                            <tr>
                                                <th width="13"><input type="checkbox" class="checkbox" /></th>
                                                <th>Tên Hoa</th>
                                                <th>Ngày Nhập</th>
                                                <th>Số Lượng</th>
                                                <th width="110" class="ac">Điều Chỉnh</th>
                                            </tr>
                                            <?php
                                            if (isset($hoa)) {
                                                foreach ($hoa as $val) {
                                                    $val = (object) $val;
                                                    $MaHoa = $val->MaHoa;
                                                    $TenHoa = $val->TenHoa;
                                                    $SoLuong = $val->SoLuong;
                                                    $NgayNhap = $val->NgayNhap;
                                                    ?>
                                                    <?php echo form_open('manage/forward'); ?>
                                                    <tr>
                                                        <td><input type="checkbox" class="checkbox" /><?php echo form_hidden('MaHoa', $MaHoa) ?></td>
                                                        <td><h3><a href="#"><?php echo $TenHoa; ?></a></h3></td>
                                                        <td><?php echo $NgayNhap; ?></td>
                                                        <td><a href="#"><?php echo $SoLuong; ?></a></td>
                                                        <td width="150px">

                                                            <button type="submit" name="delete" value="Delete" class="ico del"><?php echo img(asset_url() . 'imgs/admin/del.gif', TRUE); ?> Delete</button>

                                                            <button type="submit" name="edit" value="Edit" class="ico edit"><?php echo img(asset_url() . 'imgs/admin/edit.gif', TRUE); ?> Edit </button>
                                                        </td>
                                                        <?php echo form_close(); ?>
                                                    </tr>
                                                    <?php
                                                }
                                            }
                                            ?>      
                                        </table>
                                        <!-- Pagging -->
                                        <div class="pagging">
                                            <?php
                                            echo $this->pagination->create_links(); // tạo link phân trang 
                                            ?>
                                        </div>
                                        <!-- End Pagging -->
                                    </div>
                                    <!-- Table -->
                                </div>
                            </div>
                            <!-- End Content -->
                            <div class="cl">&nbsp;</div>			
                        </div>
                        <a id="backlink" style="font-size: 13px" href="http://localhost:8080/flowershop-424-641/index.php/manage">Quay Lại Trang Quản Trị</a>
                    </div>
                </div>
            </div>
            <!--end of center content-->
            <?php include '/layout/footer.php'; ?>
        </div>
    </body>
</html>
